package lab02.test11;

/**
 * Created by admin on 2017/10/20.
 */
public class Square  extends Rectangle {
    double diagonal;

    @Override
    public void printMyWay() {
       diagonal=Math.sqrt(length*width);
        System.out.println("该矩形的长length=" + length + "宽width=" + width+"面积area="+area+"周长girth="+girth+"对角线长度diagonal="+diagonal);
    }
}
